package com.w;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = "com.w")
public class sb {
    public static void main(String[] args) {
        //会返回一个ioc容器
        ConfigurableApplicationContext run = SpringApplication.run(sb.class, args);
        //会获取到所有自动装配的组件的名称
        String[] names = run.getBeanDefinitionNames();
        /**
         * 比如spring整合springmvc会用到DispatcherServlet，防止中文乱码的CharacterEncodingFilter都会
         * 自动装配进去
         */
    }
}
